//
// NLSESolverView.h
// NLSE Solver, Created by jmpp on 9/2/10.
// $Id: NLSESolverView.h 16 2010-11-03 14:19:32Z jmpalacios $

/**
* =================================================================
* Copyright (C) 2010, Juan Manuel Palacios. All Rights Reserved.
*
* This software project, which includes this module, is licensed
* as described in the file LICENSE, which you should have received
* as part of this distribution, and may be used only according to
* the terms described therein.
*
* =================================================================
**/


#import <Cocoa/Cocoa.h>
#import "NLSESolverAppController.h"


@interface NLSESolverView : NSView
{
    id viewController;
    NSOpenGLContext *openGLContext;
  @private
    id <NLSESolverAppController> appController;
}

@property (assign) id viewController;
@property (assign, readonly) NSOpenGLContext *openGLContext;


- (id) initWithFrame:(NSRect)frameRect;
- (id) init;
- (void) surfaceNeedsUpdate:(NSNotification *)theNotification;
- (void) lockFocus;
- (void) prepareOpenGL;
- (void) drawEmptyGraph;
- (void) mouseDown:(NSEvent *)theEvent;
- (BOOL) acceptsFirstResponder;

@end
